package com.th.supcom.pds.impl.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import com.th.supcom.pds.domain.pojo.InpPhamDispenseDetail;

/**
 * InpPhamDispenseDetail Mapper接口.
 * 
 * 住院摆药明细表.
 */
public interface InpPhamDispenseDetailMapper
{
    /**
     * 通过主键ID查询表记录.
     * 
     * @param id 主键ID.
     * @return InpPhamDispenseDetail 传输对象.
     */
    public InpPhamDispenseDetail getInpPhamDispenseDetailByID (@Param ("id") Long id);

    /**
     * 通过传输对象对应值查询表记录.
     * 
     * @param params Map入参对象.
     * @return CpoeInOrder 结果对象集.
     */
    public List <InpPhamDispenseDetail> findInpPhamDispenseDetailListByMap (Map <String, Object> params);

    /**
     * 通过传输对象对应值查询表记录并且进行分页.
     * 
     * @param rowBounds 分页对象.
     * @param params Map入参对象.
     * @return CpoeInOrder 结果对象集.
     */
    public List <InpPhamDispenseDetail> findInpPhamDispenseDetailPagingByMap (RowBounds rowBounds, Map <String, Object> params);

    /**
     * 按条件统计事件类型.
     * 
     * @param params 查询参数
     * @return 符合条件的个数
     */
    public Integer findInpPhamDispenseDetailCountByMap (Map <String, Object> params);

    /**
     * 通过传输对象对应值查询表记录.
     * 
     * @param inpPhamDispenseDetail 传输对象.
     * @return InpPhamDispenseDetail 结果对象.
     */
    public List <InpPhamDispenseDetail> findInpPhamDispenseDetailListByExample (InpPhamDispenseDetail inpPhamDispenseDetail);
    /**
     * 通过传输对象对应值查询表记录.（药房摆药查询）
     * 
     * @param inpPhamDispenseDetail 传输对象.
     * @return InpPhamDispenseDetail 结果对象.
     */
    public List <InpPhamDispenseDetail> findInpPhamDispenseDetail(InpPhamDispenseDetail inpPhamDispenseDetail);
    /**
     * 通过请领明细主键查询请领明细对应摆药明细
     * 
     * @param list
     * @return
     */
    public List <InpPhamDispenseDetail> findDispenseDetailListByApplyDetailIdList (List <Long> list);

    /**
     * 通过传输对象对应值查询表记录条数.
     * 
     * @param inpPhamDispenseDetail 传输对象.
     * @return 条数.
     */
    public int findInpPhamDispenseDetailCountByExample (InpPhamDispenseDetail inpPhamDispenseDetail);
    public List <InpPhamDispenseDetail> findInpPhamDispenseDetailListByCondition (InpPhamDispenseDetail inpPhamDispenseDetail);
    
    /**
     * 通过主键ID更新表记录.
     * 
     * @param inpPhamDispenseDetail 更新的传输对象.
     * @return 更新条数.
     */
    public int modifyInpPhamDispenseDetail (InpPhamDispenseDetail inpPhamDispenseDetail);

    /**
     * 通过主键ID批量更新表记录.
     * 
     * @param list 更新的传输对象.
     * @return 更新条数.
     */
    public int modifyInpPhamDispenseDetailList (List <InpPhamDispenseDetail> list);

    /**
     * 通过主键ID更新表记录，字段有值才更新.
     * 
     * @param inpPhamDispenseDetail 更新的传输对象.
     * @return 更新条数.
     */
    public int modifyInpPhamDispenseDetailByExample (InpPhamDispenseDetail inpPhamDispenseDetail);

    /**
     * 通过VO对象插入记录.
     * 
     * @param inpPhamDispenseDetail 插入的传输对象.
     */
    public void addInpPhamDispenseDetail (InpPhamDispenseDetail inpPhamDispenseDetail);

    /**
     * 批量添加摆药明细.
     * 
     * @param inpPhamDispenseDetail 插入的传输对象.
     */
    public void addInpPhamDispenseDetailList (List <InpPhamDispenseDetail> list);

    /**
     * 通过主键ID删除表记录.
     * 
     * @param id 删除的主键ID.
     * @return 删除条数.
     */
    public int removeInpPhamDispenseDetailByID (@Param ("id") Long id);

    /**
     * 通过传入的Map参数删除表记录.
     * 
     * @param params 带条件的传入参数.
     * @return 删除条数.
     */
    public int removeInpPhamDispenseDetailByMap (Map <String, Object> params);

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";

    
}